<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8" />
  <style type="text/css">
   .wrapper {position: relative;}
   #input {position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;}
  </style>
 </head>
 <body>
  <div id="text" class="wrapper">
            FNSKU: {{statistics_obj.fnsku}}<br/>
            Damaged-warehouse：<br/>
            &nbsp &nbsp(+) Damaged at Amazon fulfillment center : {{inventory_damaged}}<br/>
            Lost-warehouse：<br/>
            &nbsp &nbsp(+) Amazon misplaced inventory : {{inventory_misplaced}}<br/>
            &nbsp &nbsp(-) Found inventory &amp;Transfer from holding &amp; Already reimbursed items(valid) : {{f_total}}<br/>
            Totally：<br/>
            &nbsp &nbsp(=) Item discrepancy and need to be reimbursed: {{reimbursed_need}}<br/>
<br/>
            Inventory adjustment transactions ids:<br/>
            &nbsp &nbsp{{adjustment_str|safe}}<br/>
            {{reimbursement_str|safe}}<br/>
    </div>
   <textarea id="input"> </textarea>
    <div style="text-align:center">
        <button onclick="copyText()">复制内容</button>
    </div>


  <script type="text/javascript">
    function copyText() {
      var text = document.getElementById("text").innerText;
      var input = document.getElementById("input");
      input.value = text; // 修改文本框的内容
      input.select(); // 选中文本
      document.execCommand("copy"); // 执行浏览器复制命令
      parent.layer.msg('复制成功！', {time:1000});
    }
  </script>
 </body>
</html>